/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project.jpdftools.ui.managers;

import javax.swing.SwingUtilities;
import project.jpdftools.constants.Const;
import project.jpdftools.managers.LocalizationManager;
import project.jpdftools.managers.LoggerManager;
import project.jpdftools.ui.MainMenu;

/**
 *
 * @author Mido
 */
public class MainManager {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                LoggerManager.getLogger().info(project.jpdftools.toolkit.Toolkit.getOSDetails());
                LoggerManager.getLogger().info("Program Version: " + Const.program_version);
                LoggerManager.getLogger().info("Program Intialized...");

                // intialize saved language
                LocalizationManager.intializeLocalization();
                // intialize saved theme
                ThemeManager.intializeTheme();
                // intialize saved theme
                IconManager.initializeIcons();

                // open the MainMenu
                MainMenu.getInstance().intialize();
                MainMenu.getInstance().setVisible(true);

                // apply the look and feel to the MainMenu
                SwingUtilities.updateComponentTreeUI(MainMenu.getInstance());
            }
        });
    }
}